#ifndef TTT_HPP
#define TTT_HPP

//#include "Application.hpp"
//#include <SDL2/SDL.h>
//#include <SDL2/SDL_image.h>
#include "Texture.hpp"

namespace MA {

class TTT {

public:
    TTT();

	void loadResource(SDL_Renderer* renderer);
	char update();
	void draw(SDL_Renderer* renderer);

	char switchPlayer();

	void setMap(uint8_t x, uint8_t y);
	char getMap(uint8_t x, uint8_t y);

private:
	Texture m_bgTex;
	Texture m_xTex;
	Texture m_oTex;

	char m_curPlayer;

	char m_map[3][3];
};

}
#endif // TTT_HPP
